//
//  SettingCell.h
//  AutoMate
//
//  Created by hao on 2018/3/1.
//  Copyright © 2018年 songlei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SettingItemModel.h"

@interface SettingCell : UITableViewCell

// 给外界调用的一个cell类方法
+ (instancetype)cellWithTableView:(UITableView *)tableView
                        indexPath:(NSIndexPath *)indexPath
                        itemModel:(SettingItemModel *)itemModel;
- (instancetype)initWithTableView:(UITableView *)tableView
                        indexPath:(NSIndexPath *)indexPath
                        itemModel:(SettingItemModel *)itemModel;

@property (nonatomic, strong) SettingItemModel *itemModel;

@property (nonatomic, strong) NSIndexPath *indexPath;

/** 如果CellRightViewType == CellRightViewTypeTextField 才不为空，其他类型为空 */
@property (nonatomic, weak, readonly) UITextField *textField;

@end
